package com.stock;

import com.kevin.core.util.DateUtils;
import org.codehaus.jackson.JsonParser;
import org.codehaus.jackson.map.DeserializationContext;
import org.codehaus.jackson.map.JsonDeserializer;

import java.io.IOException;
import java.util.Date;


public class DateDerializer extends JsonDeserializer<Date>{

	@Override
	public Date deserialize(JsonParser parser, DeserializationContext context)
			throws IOException {
		return DateUtils.parse(parser.getText(), DateUtils.FORMAT_EEE_MMM_dd, java.util.Locale.ENGLISH);
	}

	public static void main(String[] args){
	System.out.println("test");
	}

}
